import common from "@/validator/common";

const name = [
  common.getRequiredRule('姓名'),
  ...common.name
]

const username = [
  common.getRequiredRule('用户名'),
  ...common.username
]

const mobile = [
  common.getRequiredRule('手机号'),
  ...common.mobile
]

export default {
  insertRules: {
    name,
    username,
    mobile
  },
  updateRules: {
    name,
    username,
    mobile
  }
}
